<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
        <form id="updateScoreform" method="post">
            <label for="name">学生:</label><input type="text" readonly="true" name="name" id="name"></input><br>
            <input type="text"  hidden=true id="id" name="id">
            <label for="course">课程:</label><input type="text" readonly="true" name="course" id="course"></input>
            	<div style="height:3px;width: 2px"></div> 
            <br><label for="score">分数:</label><input id="score"type="text" name="score"data-options="required:true"class="easyui-numberbox"></input>
        </div>
    </form>
<script type="text/javascript">
$(function(){
	var rows = $('#dg').datagrid('getSelections')[0];
	$('#name').val(rows.niceName);
	$('#course').val(rows.courseName);	
	$('#id').val(rows.id);	
	$('#score').val(rows.scores);	
})
</script>
</body>
</html>